#include <header.h>

int main(){

    int socket_fd = socket(AF_INET, SOCK_DGRAM, 0);


    struct sockaddr_in sock;
    sock.sin_family = AF_INET;
    sock.sin_port = htons(atoi("8080"));
    sock.sin_addr.s_addr = inet_addr("192.168.106.130");
    sendto(socket_fd, "nihao", 5, 0,(struct sockaddr *)&sock, sizeof(sock));

    
    char buf[100]= {0};
    recvfrom(socket_fd, buf, sizeof(buf), 0, NULL, NULL);
    printf("buf: %s \n", buf);


    close(socket_fd);
    return 0;
}

